package cn.edu.nju.software.beans;

public class CourseBean {

	// courses' properties
	private String cId;
	private String cName;
	private String cInstitute;
	private String cTeacher;
	private int cGreads;
	private int cNumber;
	private String cPlace;
	private boolean cShared;

	// two constructors
	public CourseBean() {
		cId = "";
		cName = "";
		cInstitute = "";
		cTeacher = "";
		cGreads = 0;
		cNumber = 0;
		cPlace = "";
		cShared = false;
	}

	public CourseBean(String id, String name, String institude, String teacher,
			int greads, int number, String place, boolean shared) {
		this.cId = id;
		this.cName = name;
		this.cInstitute = institude;
		this.cTeacher = teacher;
		this.cGreads = greads;
		this.cNumber = number;
		this.cPlace = place;
		this.cShared = shared;
	}

	// properties' setters
	public void setId(String cid) {
		this.cId = cid;
	}

	public void setName(String cname) {
		this.cName = cname;
	}

	public void setInstitute(String cinstitute) {
		this.cInstitute = cinstitute;
	}

	public void setTeacher(String cteacher) {
		this.cTeacher = cteacher;
	}

	public void setGreads(int cgreads) {
		this.cGreads = cgreads;
	}

	public void setNumber(int cnumber) {
		this.cNumber = cnumber;
	}

	public void setPlace(String cplace) {
		this.cPlace = cplace;
	}

	public void setShared(boolean cshared) {
		this.cShared = cshared;
	}

	// properties' getters
	public String getId() {
		return this.cId;
	}

	public String getName() {
		return this.cName;
	}

	public String getInstitute() {
		return this.cInstitute;
	}

	public String getTeacher() {
		return this.cTeacher;
	}

	public int getGreads() {
		return this.cGreads;
	}

	public int getNumber() {
		return this.cNumber;
	}

	public String getPlace() {
		return this.cPlace;
	}

	public boolean getShared() {
		return this.cShared;
	}
}
